:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;

  --bg: #eeeeee;
  --hover-bg: #222;
  --highlight: lawngreen;
  --wireframe: blue;

  --workspace-offset: 16px;
  --workspace-button-size: 32px;
}

#root {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
body {
  margin: 0;
  overflow: hidden;
  color: white;
  background-color: #111;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

textarea,
a.button,
button,
input {
  border-radius: 2px;
  border: 1px solid #777;
  background-color: #555;
  color: white;
}

a.button,
button,
input {
  height: 28px;
}

a.button:visited {
  color: white;
}

textarea:hover,
a.button:hover,
button:hover,
input:hover {
  border-color: #888;
  background-color: #666;
}

a.button:active,
button:active {
  border-color: #aaa;
  background-color: #777;
}

button[aria-selected="true"] {
  pointer-events: none;
  border-color: lightgray;
}

input {
  padding: 0 7px;
}

a.button,
button {
  user-select: none;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

a.button.icon,
button.icon {
  padding: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

*:disabled {
  pointer-events: none;
  opacity: 0.4;
}

ul,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

li:not(:last-child) {
  padding-bottom: 0.5rem;
}

.animated {
  animation: opening-animation 1.5s ease-out;
}

@keyframes opening-animation {
  from {
    transform: rotateX(30deg) rotateZ(75deg) scale3d(0.2, 0.2, 0.2) translateZ(var(--translate-z));
  }
  to {
    transform: rotateX(var(--rotate-x)) rotateZ(var(--rotate-z)) scale3d(var(--zoom), var(--zoom), var(--zoom))
      translateZ(var(--translate-z));
  }
}
